package com.py.warehouse.service.impl;

import com.py.warehouse.domain.BsWarehouse;
import com.py.warehouse.domain.Product;
import com.py.warehouse.domain.WhInventory;
import com.py.warehouse.mapper.BsWarehouseMapper;
import com.py.warehouse.mapper.WhInventoryMapper;
import com.py.warehouse.service.IBsWarehouseService;
import com.py.warehouse.service.WhInventoryService;
import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * 仓库列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-25
 */
@Service
public class WhInventoryServiceImpl implements WhInventoryService
{
    @Autowired
    private WhInventoryMapper whInventoryMapper;

    @Override
    public Integer selectWhInventoryByWarehouseCode(String locationCode) {
        return whInventoryMapper.selectWhInventoryByWarehouseCode(locationCode);
    }

    @Override
    public List<Product> selectProductByWarehouseCode(String warehouseCode, String productName, Integer productUnit) {
        return whInventoryMapper.selectProductByWarehouseCode(warehouseCode,productName,productUnit);
    }

    @Override
    public Integer selectInventory(WhInventory whInventory) {
        return whInventoryMapper.selectInventory(whInventory);
    }
}
